package com.cavalier.surtr;

import com.cavalier.surtr.rpcService.ucCenter.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by archangle on 17/2/16.
 */
@RestController
public class BaseController {

    @Autowired
    private IUserService userService;

    @RequestMapping("/")
    @ResponseBody
    String home() {
        return userService.getTest().getData();
    }
}
